package com.tianze.tzkf.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by JY on 2019/1/2.
 * 更新
 */
public class GetVersionBean implements Serializable {


    /**
     * code : 10001
     * status : success
     * msg : 版本信息
     * ver : online
     * data : {"code":10001,"status":"success","msg":"\u8bf7\u6c42\u6210\u529f","ver":"online","data":[{"currentVersion":{"version":1,"note":"","url":"https:\/\/isv.umxnt.com"},"isForceUpdate":false,"updateVersion":{"version":2,"note":"","url":""}}]}
     */

    private int code;
    private String status;
    private String msg;
    private String ver;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getVer() {
        return ver;
    }

    public void setVer(String ver) {
        this.ver = ver;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Serializable{
        /**
         * isForceUpdate :是否要强制更新
         * updateVersion :最新版本
         * currentVersion : 当前版本
         */

        private boolean isForceUpdate;
        private UpdateVersion updateVersion;
        private CurrentVersion currentVersion;

        public boolean isForceUpdate() {
            return isForceUpdate;
        }

        public void setForceUpdate(boolean forceUpdate) {
            isForceUpdate = forceUpdate;
        }

        public UpdateVersion getUpdateVersion() {
            return updateVersion;
        }

        public void setUpdateVersion(UpdateVersion updateVersion) {
            this.updateVersion = updateVersion;
        }

        public CurrentVersion getCurrentVersion() {
            return currentVersion;
        }

        public void setCurrentVersion(CurrentVersion currentVersion) {
            this.currentVersion = currentVersion;
        }

        public static class UpdateVersion implements Serializable {
            /**
             * version : 最新版本号
             * note : 更新内容
             * url : 下载地址
             */

            private String version;
            private String note;
            private String url;

            public String getVersion() {
                return version;
            }

            public void setVersion(String version) {
                this.version = version;
            }

            public String getNote() {
                return note;
            }

            public void setNote(String note) {
                this.note = note;
            }

            public String getUrl() {
                return url;
            }

            public void setUrl(String url) {
                this.url = url;
            }
        }

        public static class CurrentVersion implements Serializable {
            /**
             * version : 当前版本号
             * note : 当前版本内容
             * url : 下载地址
             */

            private String version;
            private String note;
            private String url;

            public String getVersion() {
                return version;
            }

            public void setVersion(String version) {
                this.version = version;
            }

            public String getNote() {
                return note;
            }

            public void setNote(String note) {
                this.note = note;
            }

            public String getUrl() {
                return url;
            }

            public void setUrl(String url) {
                this.url = url;
            }
        }
    }
}
